﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 通讯工具
{
    internal class Communication
    {
        private string selfNumber;

        public Communication(string number)
        {
            selfNumber = number;
        }

        public void Calling()
        {
            Console.WriteLine("正在通话......");
        }

        public void Offset()
        {
            Console.WriteLine("挂断电话......");
        }

        public void ShowSelfNumber()
        {
            Console.WriteLine($"本机号码是: {selfNumber}");
        }
    }
}
